package com.ssr.master;


import com.ssr.master.common.config.DynamicDataSourceConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Import;

/**
 * 程序启动类
 *动态数据源配置,需要将自有的配置依赖(DynamicDataSourceConfig),将原有的依赖去除(DataSourceAutoConfiguration)
 */
@Import({DynamicDataSourceConfig.class})
@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})
public class ResearchSsrApplication {

    public static void main(String[] args) {
        SpringApplication.run(ResearchSsrApplication.class, args);
        System.out.println("▄︻┻┳══━一    springBoot-myBatis-redis-srhiro-freemarker-bootstrap启动成功    ‧★,:*:‧\\(￣▽￣)/‧:*‧°★*");
    }
}
